package com.ysy.logistics.entities.oam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysy.logistics.entities.device.DeviceLife;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/21 10:38
 **/
@Data
@TableName("operation_log")
@Schema(name = "operation_log", description = "操作日志")
@Accessors(chain = true)
public class OperationLog {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "日志id")
    private Long id;

    @TableField(value = "log_type")
    @Schema(description = "日志类型")
    private String logType;
    @TableField(value = "log_name")
    @Schema(description = "日志名称")
    private String logName;
    @TableField(value = "user_id")
    @Schema(description = "操作用户id")
    private String userId;
    @Schema
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "class_name")
    @Schema(description = "对应类名")
    private String className;
    @TableField(value = "method")
    @Schema(description = "对应方法名")
    private String method;
    @TableField(value = "create_time")
    @Schema(description = "操作时间")
    private Date createTime;
    @TableField(value = "succeed")
    @Schema(description = "成功标识")
    private String succeed;
    @TableField(value = "message")
    @Schema(description = "操作详情")
    private String message;
}
